#ifndef  _RW_csreader_H 
#define  _RW_csreader_H 
#include "xmlNodeHelper.h"
#include "QtCore"
#include "qtgui"
#include "properties\pefactory.h"
#include "constantManager.h"
#include "CCQTSceneDirector.h"

#define TYPE_ENUMETYPE 261

class CSReader
{
public:
	
	CSReader();

	static CSReader * shareReader();


	int readCSCProjFile(char * filename);
	~CSReader(){}
	bool nodeStartWith(xmlNodePtr node, char * ccnodeName);

	void findChildren(xmlNodePtr node,QTreeWidgetItem * parentItem ,CCNode * parentCNode , TreeWidget_CCScene *treeWidget );
	void iteratorXmlNodes( xmlNodePtr node , QTreeWidgetItem * parentItem , CCNode * parentCNode , TreeWidget_CCScene *treeWidget );
protected:
	
private:
};


#endif
